﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DotNetExtensions.AspNet.Http
{
    public class Cookie : KeyValue
    {
        public Cookie(string name, string value) : base(name, value) { }
    }

    public class CookieCollection : ValueCollection<Cookie>
    {
        public CookieCollection() : base()
        {

        }
        public CookieCollection(List<Cookie> values) : base(values)
        {

        }
        public override void Add(Cookie item)
        {
            base.Add(item, x => x.Name == item.Name);
        }
    }
}
